const fs = require('fs');
const ps = require('path');
const fileName = process.argv[2];
const file = ps.join(__dirname, 'ts', `${fileName}.d.ts`);
const original = fs.readFileSync(file, { encoding: 'utf8' });
fs.writeFileSync(file, `
namespace ${fileName} {
    ${original}
}
export default ${fileName};
`);